import request from '@/utils/request'

// 查询采样任务列表
export function listSampling(query) {
  return request({
    url: '/eim/sampling/list',
    method: 'get',
    params: query
  })
}

// 查询采样任务详细
export function getSampling(id) {
  return request({
    url: '/eim/sampling/' + id,
    method: 'get'
  })
}

// 新增采样任务
export function addSampling(data) {
  return request({
    url: '/eim/sampling',
    method: 'post',
    data: data
  })
}

// 修改采样任务
export function updateSampling(data) {
  return request({
    url: '/eim/sampling',
    method: 'put',
    data: data
  })
}

// 删除采样任务
export function delSampling(id) {
  return request({
    url: '/eim/sampling/' + id,
    method: 'delete'
  })
}
